home *** CD-ROM | disk | FTP | other *** search
- property pID
-
- on getPropertyDescriptionList
- propertyDescriptionList = [#pID: [#comment: "ID risposta", #range: [1, 2, 3], #format: #integer, #default: 1]]
- return propertyDescriptionList
- end
-
- on mouseUp me
- global gPunteggio, gNumeroDomanda, gRispostaSbagliata
- cursor(-1)
- dati = line gNumeroDomanda of field "dati"
- good = item 6 of dati
- delete char 1 to 3 of good
- if pID = good then
- nascondisbagliate()
- tmp = the member of sprite the currentSpriteNum
- set the foreColor of field tmp to 11
- quadro = item 2 of dati
- delete char 1 to 3 of quadro
- sprite(20).visible = 1
- set the member of sprite 20 to member(quadro)
- sprite(20).visible = 1
- sprite(21).visible = 0
- suonook(gRispostaSbagliata)
- startTimer()
- cursor(4)
- repeat with i = 1 to the maxinteger
- if the timer < (60 * 5) then
- nothing()
- next repeat
- end if
- go(3)
- exit repeat
- end repeat
- cursor(-1)
- if gRispostaSbagliata = 0 then
- gPunteggio = gPunteggio + 1
- end if
- domanda()
- visualizzadomanda()
- else
- gRispostaSbagliata = gRispostaSbagliata + 1
- sprite(the currentSpriteNum).visible = 0
- suonono()
- if gRispostaSbagliata = 2 then
- repeat with i = 1 to 3
- set the foreColor of field ("risposta" & i) to 11
- end repeat
- go(3)
- domanda()
- quadro = item 2 of dati
- delete char 1 to 3 of quadro
- sprite(20).visible = 1
- set the member of sprite 20 to member(quadro)
- sprite(20).visible = 1
- sprite(21).visible = 0
- updateStage()
- startTimer()
- cursor(4)
- repeat with i = 1 to the maxinteger
- if the timer < (60 * 5) then
- nothing()
- next repeat
- end if
- repeat with p = 1 to 3
- set the foreColor of field ("risposta" & p) to 0
- end repeat
- visualizzadomanda()
- exit repeat
- end repeat
- cursor(-1)
- end if
- end if
- end
-